/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.merchant.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.wealth.merchant.entity.Activity;

import iaas.repository.BaseRepository;

/**
 * @author chan
 * @version 1.0
 * @since 1.0
 */
 
@Repository
public interface ActivityDao extends BaseRepository<Activity, Long> ,JpaSpecificationExecutor<Activity>{

	/**
	 * 根据企业和状态查询活动分类
	 * @param status
	 * @param corpId
	 * @return
	 */
	public 	List<Activity> findByStatusAndMerchantId(Integer status,Long merchantId);
	
}

